using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class select_level : MonoBehaviour
{
    public void S1()
    {
        SceneManager.LoadScene(1);
        level_manager.para = 0;
        return;
    }
    public void S2()
    {
        if (level_manager.pass > 0) { 
        SceneManager.LoadScene(1); 
        level_manager.para = 1;
        }
    }
    public void S3()
    {
        if (level_manager.pass > 1)
        {
            SceneManager.LoadScene(1);
            level_manager.para = 2;
        }
    }
    public void S4()
    {
        if (level_manager.pass > 2)
        {
            SceneManager.LoadScene(1);
            level_manager.para = 3;
        }
    }
    public void S5()
    {
        if (level_manager.pass > 3)
        {
            SceneManager.LoadScene(1);
            level_manager.para = 4;
        }
    }
}
